package com.xplay.xpocker.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import javax.annotation.PostConstruct;
@Data
@Component
@ConfigurationProperties(prefix = "api")
public class ApiInfoProp {

    private static ApiInfoProp INSTANCE;

    @PostConstruct
    public void init() {
        INSTANCE = this;
    }

    public static ApiInfoProp getInstance() {
        return INSTANCE;
    }

    private String version;
    private String updateInfo;
}
